<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录成功</title>
    <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#logout").click(function () {
                $.get("${pageContext.request.contextPath}/logout", function (data, status) {
                    if (status == "success") {
                        alert("您已登出系统!");
                        $(window).attr('location', '/login');
                    }
                });
            });
        });
    </script>
</head>
<body>
<div align="center">
    <h1>登录成功</h1>
    <button id="logout">退出登录</button>
</div>
</body>
</html>
